package com.example.springboot_shiro.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

@Accessors(chain = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
    public class  User{
        private  String id;
        private String username;
        private String password;
        private String salt;

        //定义角色集合
    private List<Role> roles;
    }

